home *** CD-ROM | disk | FTP | other *** search
/ Hobby PC 13 / Hobby PC 13.iso / assets / Asset Library / Images / Mouseover Buttons / For White Backgrounds / purplegolfball / fxitems.xml < prev    next >
Extensible Markup Language  |  2001-04-09  |  6KB  |  80 lines

  1. <?xml version="1.0" standalone="yes"?>
  2.  
  3. <Items>
  4. <Template>
  5.     <Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
  6.         <Icon SRC="%Filename%"/>
  7.         <Icon2 SRC="%Filename%"/>
  8.         <Description>%ASK:Description:%{Button ALT Text}</Description>
  9.         <Filename SRC="%Filename%"/>
  10.         <Filename2 SRC="%Filename%"/>
  11.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  12.         var src, src2, dest, attr, attr2, dst2, dst;
  13.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  14.         src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
  15.  
  16.         function buildpath()
  17.                 {
  18.                 if (ActiveDocument.InCurrentProject)
  19.                         {
  20.                         dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
  21.                         dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  22.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
  23.                         attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
  24.                         }
  25.                 else
  26.                         {
  27.                         dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
  28.                         dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  29.                         attr = "images/buttons/default/%Filename%";
  30.                         attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
  31.                         }
  32.                 }
  33.  
  34.         function dropfxnow()
  35.                 {
  36.                 Application.FX.CopyFile(src, dst);
  37.                 Application.FX.CopyFile(src2, dst2);
  38.                 Application.FX.SelectDropPoint();
  39.                 AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
  40.                 Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  41.                 Application.FX.ShowDialog('ANCHOR');
  42.                 }
  43.  
  44.         // First, check if the file is saved
  45.         if (ActiveDocument.Path != "")
  46.                 {
  47.                 buildpath();
  48.                 dropfxnow();
  49.                 }
  50.         else
  51.                 {
  52.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  53.  
  54.                 if (ans == 1)
  55.                         {
  56.                         ActiveDocument.SaveAs();
  57.                         }
  58.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  59.                         {
  60.                         buildpath();
  61.                         dropfxnow();
  62.                         }
  63.                 }
  64.         
  65.         ]]>
  66.       </SCRIPT>
  67.     </Item>
  68. </Template>
  69. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpattn"><Icon SRC="tdb_wpattn.gif"/><Icon2 SRC="(tdb)wpattn.gif"/><Description>Attention</Description><Filename SRC="tdb_wpattn.gif"/><Filename2 SRC="(tdb)wpattn.gif"/></Item>
  70. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpdown"><Icon SRC="tdb_wpdown.gif"/><Icon2 SRC="(tdb)wpdown.gif"/><Description>Down</Description><Filename SRC="tdb_wpdown.gif"/><Filename2 SRC="(tdb)wpdown.gif"/></Item>
  71. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpemail"><Icon SRC="tdb_wpemail.gif"/><Icon2 SRC="(tdb)wpemail.gif"/><Description>Email</Description><Filename SRC="tdb_wpemail.gif"/><Filename2 SRC="(tdb)wpemail.gif"/></Item>
  72. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpfaq"><Icon SRC="tdb_wpfaq.gif"/><Icon2 SRC="(tdb)wpfaq.gif"/><Description>FAQ</Description><Filename SRC="tdb_wpfaq.gif"/><Filename2 SRC="(tdb)wpfaq.gif"/></Item>
  73. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpgoback"><Icon SRC="tdb_wpgoback.gif"/><Icon2 SRC="(tdb)wpgoback.gif"/><Description>Go Back</Description><Filename SRC="tdb_wpgoback.gif"/><Filename2 SRC="(tdb)wpgoback.gif"/></Item>
  74. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wphelp"><Icon SRC="tdb_wphelp.gif"/><Icon2 SRC="(tdb)wphelp.gif"/><Description>Help</Description><Filename SRC="tdb_wphelp.gif"/><Filename2 SRC="(tdb)wphelp.gif"/></Item>
  75. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wphome"><Icon SRC="tdb_wphome.gif"/><Icon2 SRC="(tdb)wphome.gif"/><Description>Home</Description><Filename SRC="tdb_wphome.gif"/><Filename2 SRC="(tdb)wphome.gif"/></Item>
  76. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpnext"><Icon SRC="tdb_wpnext.gif"/><Icon2 SRC="(tdb)wpnext.gif"/><Description>Next</Description><Filename SRC="tdb_wpnext.gif"/><Filename2 SRC="(tdb)wpnext.gif"/></Item>
  77. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpprev"><Icon SRC="tdb_wpprev.gif"/><Icon2 SRC="(tdb)wpprev.gif"/><Description>Previous</Description><Filename SRC="tdb_wpprev.gif"/><Filename2 SRC="(tdb)wpprev.gif"/></Item>
  78. <Item Type="File" CLASS="Mouseover Button" ID="tdb_wpup"><Icon SRC="tdb_wpup.gif"/><Icon2 SRC="(tdb)wpup.gif"/><Description>Up</Description><Filename SRC="tdb_wpup.gif"/><Filename2 SRC="(tdb)wpup.gif"/></Item>
  79.  
  80. </Items>